import { getStore } from "./getStore";
import { ISelector } from "./types";

export function select<TState = any, TSelected = any>(
  selector: ISelector<TState, TSelected>
) {
  const models = getStore();
  return selector(models);
}
